package com.liang.text5;

public class FinalTest {

    static{
        System.out.println("这是静态代码块随类一起加载，只加载一次");
    }


    int a;

    {
        System.out.println("构造代码块");
    }
    public FinalTest() {
        System.out.println("这是无参构造函数");
    }

    public FinalTest(int a) {
        this.a = a;
        System.out.println("这是有参构造函数");
    }

    public void jubuTest() {
        {
            int a = 10;
            System.out.println(a);
        }
//        System.out.println(a);
    }
}
